package com.huazhen.itrip.biz.service.hotel;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripAreaDic;
import com.huazhen.itrip.beans.pojo.ItripHotel;
import com.huazhen.itrip.beans.pojo.ItripLabelDic;
import com.huazhen.itrip.beans.vo.hotel.ItripSearchFacilitiesHotelVO;
import com.huazhen.itrip.beans.vo.hotel.ItripSearchPolicyHotelVO;
import com.huazhen.itrip.dao.hotel.ItripHotelMapper;
@Service("ItripHotelService")
public class ItripHotelServiceImpl implements ItripHotelService {
	@Autowired
	private ItripHotelMapper itripHotelMapper;
	@Override
	public ItripHotel getItripHotelById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.getItripHotelById(id);
	}

	@Override
	public ItripSearchFacilitiesHotelVO getItripHotelFacilitiesById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.getItripHotelFacilitiesById(id);
	}

	@Override
	public ItripSearchPolicyHotelVO queryHotelPolicy(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.queryHotelPolicy(id);
	}

	@Override
	public List<ItripHotel> getItripHotelListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.getItripHotelListByMap(param);
	}

	@Override
	public Integer getItripHotelCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.getItripHotelCountByMap(param);
	}

	@Override
	public Integer insertItripHotel(ItripHotel itripHotel) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.insertItripHotel(itripHotel);
	}

	@Override
	public Integer updateItripHotel(ItripHotel itripHotel) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.updateItripHotel(itripHotel);
	}

	@Override
	public Integer deleteItripHotelById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.deleteItripHotelById(id);
	}

	//未实现此方法
	public List<ItripAreaDic> getHotelAreaByHotelId(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.getHotelAreaByHotelId(id);
	}

	//未实现此方法
	public List<ItripLabelDic> getHotelFeatureByHotelId(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelMapper.getHotelFeatureByHotelId(id);
	}

}
